package com.hm.fast;

import com.hm.fast.service.SubscriberService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author shishun.wang
 * @version 1.0
 * @date 2019/3/17 18:59
 * @describe
 */
@Slf4j
@Component
public class BootstrapHelper implements ApplicationRunner {

    @Autowired
    private SubscriberService subscriberService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        subscriberService.initSubscriber(null);
    }
}
